package com.one.rope.mvp.web.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Weijian.Liu
 * @desc 系统配置类型枚举
 * @date 2020/2/20 14:47
 */
@Getter
@AllArgsConstructor
public enum SystemConfigTypeEnum {

  COFIG1(1, "小程序审核状态");

  private int code;
  private String name;

  public static String getName(int code) {
    for (SystemConfigTypeEnum o : SystemConfigTypeEnum.values()) {
      if (o.code == code) {
        return o.name;
      }
    }
    return "";
  }
}
